﻿capital = 1

oob = "NOR_1936"

if = {
	limit = { has_dlc = "Man the Guns" }
		set_naval_oob = "NOR_1936_naval_mtg"
	else = {
		set_naval_oob = "NOR_1936_naval_legacy"
	}
}
if = {
	limit = { has_dlc = "By Blood Alone" }
	set_air_oob = "NOR_1936_air_bba"
	set_technology = {
		bba_early_transport_plane = 1
	}
	else = {
		set_air_oob = "NOR_1936_air_legacy"
		set_technology = {
			early_fighter = 1
			early_bomber = 1
			early_transport_plane = 1
		}
	}
}

#Country Leaders 
recruit_character = NOR_johan_nygaardsvold
recruit_character = NOR_vidkun_quisling
recruit_character = NOR_peder_anker_wedel_jarlsberg
recruit_character = NOR_adam_egede_nissen
#other 
recruit_character = NOR_johan_ludwig_mowinckel
recruit_character = NOR_carl_gustav_fleischer
recruit_character = NOR_elias_corneliussen
recruit_character = NOR_skule_storheil
recruit_character = NOR_ole_reistad
recruit_character = NOR_tryggve_gran
recruit_character = NOR_birger_ljungberg
recruit_character = NOR_henry_diesen
recruit_character = NOR_wilhelm_von_tangen_hansteen
recruit_character = NOR_alfred_roscher_lund
recruit_character = NOR_konrad_sundlo
recruit_character = NOR_otto_ruge
recruit_character = NOR_jacob_von_der_lippe
recruit_character = NOR_kristian_laake
recruit_character = NOR_hjalmar_riiser_larsen
recruit_character = NOR_bjarne_oen
recruit_character = NOR_edgar_otto
recruit_character = NOR_adolf_indrebo
recruit_character = NOR_halvdan_koht
recruit_character = NOR_trygve_halvdan_lie
recruit_character = NOR_carsten_tank_nielsen 

set_global_flag = NOR_trotsky_in_norway 


set_research_slots = 3

add_ideas = {
	limited_conscription
}

set_stability = 0.60
set_war_support = 0.1
set_technology = {
	infantry_weapons = 1
	infantry_weapons1 = 1
	tech_trucks = 1
	gw_artillery = 1
	interwar_antiair = 1
	tech_support = 1		
	tech_engineers = 1
	tech_recon = 1
	basic_train = 1
}
set_convoys = 350		# 4th biggest merchant marine in the world
if = {
	limit = { not = { has_dlc = "Man the Guns" } }
	set_technology = {
		early_destroyer = 1
		early_submarine = 1
		early_heavy_cruiser = 1
	}
}
if = {
	limit = { has_dlc = "Man the Guns" }
	set_technology = {
		basic_naval_mines = 1
		submarine_mine_laying = 1
		early_ship_hull_light = 1
		basic_ship_hull_light = 1
		early_ship_hull_submarine = 1
		early_ship_hull_cruiser = 1
		basic_battery = 1
		basic_torpedo = 1
		coastal_defense_ships = 1
	}
}

if = {
	limit = {
		has_aat = yes 
	}
	add_ideas = {
		NOR_complacent_cabinet_ns
		NOR_obsolete_armed_forces_ns_1
		NOR_the_hard_thirties_ns
		NOR_anti_communist_sentiment_ns
		NOR_crumbling_fortifications_ns
		NOR_birger_ljungberg
		NOR_kristian_laake
	} 
	store_core_states_on_game_start = yes
	# Setting Independent Norway Dmod variables 
	set_variable = { NOR.NOR_independent_norway_dmod_consumer_goods_factor = 0 } 
	set_variable = { NOR.NOR_independent_norway_dmod_production_speed_industrial_complex_factor = 0 } 
	set_variable = { NOR.NOR_independent_norway_dmod_production_speed_infrastructure_factor = 0 } 
	set_variable = { NOR.NOR_independent_norway_dmod_research_speed_factor = 0 } 
	set_variable = { NOR.NOR_independent_norway_dmod_production_speed_supply_node = 0} 

	# Setting Airforce Dmod variables 
	set_variable = { NOR.NOR_army_air_force_dmod_license_air_purchase_cost = 0 }
	set_variable = { NOR.NOR_army_air_force_dmod_production_speed_air_base_factor = 0 }
	set_variable = { NOR.NOR_army_air_force_dmod_production_speed_anti_air_building_factor = 0 }
	set_variable = { NOR.NOR_army_air_force_dmod_air_doctrine_cost_factor = 0 }
	set_variable = { NOR.NOR_army_air_force_dmod_air_ace_bonuses_factor = 0 }
	set_variable = { NOR.NOR_army_air_force_dmod_air_ace_generation_chance_factor = 0 }
	set_variable = { NOR.NOR_army_air_force_dmod_air_attack_factor = 0 }
	set_variable = { NOR.NOR_army_air_force_dmod_air_defence_factor = 0 }
	set_variable = { NOR.NOR_army_air_force_dmod_air_nav_efficiency = 0 }
}


1939.1.1 = {

	add_political_power = 1198
	add_command_power = 100

	if = {
		limit = {
			has_aat = yes 
		}
		complete_national_focus = NOR_continue_nygaardsvold_government
		complete_national_focus = NOR_broken_gun_policies
		complete_national_focus = NOR_leaving_the_hard_thirties_behind
		complete_national_focus = NOR_cut_military_budget
		complete_national_focus = NOR_bail_out_towns
		complete_national_focus = NOR_print_more_money
		complete_national_focus = NOR_social_incrementalism
		complete_national_focus = NOR_restart_public_investment
		complete_national_focus = NOR_restore_public_trust_in_the_storting
		complete_national_focus = NOR_building_an_independent_norway
		complete_national_focus = NOR_hurtigruten
		complete_national_focus = NOR_norwegian_school_of_economics
		complete_national_focus = NOR_weathering_the_storm_to_come
		complete_national_focus = NOR_the_neutrality_guard
		complete_national_focus = NOR_rearm_for_defense
		complete_national_focus = NOR_patrol_our_coast
		complete_national_focus = NOR_fortify_norway
		complete_national_focus = NOR_coastal_defense
		complete_national_focus = NOR_start_rearmament
		complete_national_focus = NOR_drobak_coastal_fort
		complete_national_focus = NOR_kickstart_military_industry

		add_ideas = {
			NOR_aat_norsk_hydro
		}
	}
	if = {
		limit = {
			has_aat = no 
		}
		#generic focuses
		complete_national_focus = army_effort
		complete_national_focus = equipment_effort
		complete_national_focus = motorization_effort
		complete_national_focus = aviation_effort
		complete_national_focus = naval_effort
		complete_national_focus = large_navy
		complete_national_focus = industrial_effort
		complete_national_focus = construction_effort
		complete_national_focus = production_effort
		complete_national_focus = NOR_norges_tekniske_hogskole
	}
	
	set_oob = "NOR_1939"
	if = {
		limit = { has_dlc = "Man the Guns" }
			set_naval_oob = "NOR_1939_naval_mtg"
		else = {
			set_naval_oob = "NOR_1939_naval_legacy"
		}
	}
	if = {
		limit = { has_dlc = "By Blood Alone" }
			set_air_oob = "NOR_1939_air_bba"
		else = {
			set_air_oob = "NOR_1939_air_legacy"
		}
	}

	set_technology = {
		interwar_artillery = 1
		infantry_weapons2 = 1
		support_weapons = 1
		support_weapons2 = 1 
		
		#doctrines
		air_superiority = 1
		grand_battle_plan = 1
		trench_warfare = 1
		fleet_in_being = 1
		battlefleet_concentration = 1
		submarine_operations = 1

		#electronics
		electronic_mechanical_engineering = 1
		radio = 1
		mechanical_computing = 1
		computing_machine = 1

		#industry
		basic_machine_tools = 1
		improved_machine_tools = 1
		advanced_machine_tools = 1
		synth_oil_experiments = 1
		fuel_silos = 1
		oil_processing = 1
		improved_oil_processing = 1
		construction1 = 1
		construction2 = 1
		construction3 = 1
		dispersed_industry = 1
		dispersed_industry2 = 1
	}
	complete_special_project = {
		project = sp:sp_air_radar
	}
	if = {
		limit = { not = { has_dlc = "Man the Guns" } }
		set_technology = {
		}
	}
	if = {
		limit = { has_dlc = "Man the Guns" }
		set_technology = {
			basic_depth_charges = 1
		}
	}
	set_convoys = 400		# 4th biggest merchant marine in the world
	set_stability = 0.8
}


set_politics = {
	ruling_party = democratic
	last_election = "1933.10.16"
	election_frequency = 36
	elections_allowed = yes
}
set_popularities = {
	democratic = 96
	fascism = 2
	communism = 2
}

1939.1.1 = {
	set_politics = {
		ruling_party = democratic
		last_election = "1936.10.19"
		election_frequency = 36
		elections_allowed = yes
	}
	set_popularities = {
		democratic = 84
		fascism = 2
		communism = 2
		neutrality = 12
	}
}

### VARIANTS ###
# 1936 Start #
if = {
	limit = { not = { has_dlc = "Man the Guns" } }
	### Ship Variants ###
}
if = {
	limit = { has_dlc = "Man the Guns" }
	# Submarines #
	create_equipment_variant = {
		name = "A & B Class"						
		type = ship_hull_submarine_1
		parent_version = 0
		modules = {
			fixed_ship_torpedo_slot = ship_torpedo_sub_1
			fixed_ship_engine_slot = sub_ship_engine_1
			rear_1_custom_slot = ship_mine_layer_sub
		}
	}
	# Destroyers #
	create_equipment_variant = {
		name = "Draug Class"							
		type = ship_hull_light_1
		name_group = NOR_DD_HISTORICAL
		parent_version = 0
		modules = {
			fixed_ship_battery_slot = ship_light_battery_1
			fixed_ship_anti_air_slot = empty
			fixed_ship_fire_control_system_slot = ship_fire_control_system_0
			fixed_ship_radar_slot = empty
			fixed_ship_engine_slot = light_ship_engine_1
			fixed_ship_torpedo_slot = empty
			mid_1_custom_slot = ship_torpedo_1
			rear_1_custom_slot = empty
		}
	}
	create_equipment_variant = {
		name = "Frøya Class"								# minelayer		
		type = ship_hull_light_1
		parent_version = 0
		modules = {
			fixed_ship_battery_slot = ship_light_battery_1
			fixed_ship_anti_air_slot = empty
			fixed_ship_fire_control_system_slot = ship_fire_control_system_0
			fixed_ship_radar_slot = empty
			fixed_ship_engine_slot = light_ship_engine_1
			fixed_ship_torpedo_slot = empty
			mid_1_custom_slot = ship_mine_layer_1
			rear_1_custom_slot = ship_mine_layer_1
		}
		obsolete = yes
	}
	create_equipment_variant = {
		name = "Olaf Tryggvason Class"							# minelayer		
		type = ship_hull_light_2
		parent_version = 0
		modules = {
			fixed_ship_battery_slot = ship_light_battery_1
			fixed_ship_anti_air_slot = ship_anti_air_1
			fixed_ship_fire_control_system_slot = ship_fire_control_system_0
			fixed_ship_radar_slot = empty
			fixed_ship_engine_slot = light_ship_engine_1
			fixed_ship_torpedo_slot = ship_torpedo_1
			mid_1_custom_slot = ship_mine_layer_1
			rear_1_custom_slot = ship_mine_layer_1
		}
	}
	# Heavy Cruisers #
	create_equipment_variant = {
		name = "Norge Class"				
		type = ship_hull_cruiser_coastal_defense_ship
		name_group = NOR_CA_HISTORICAL
		parent_version = 0
		modules = {
			fixed_ship_battery_slot = ship_medium_battery_1
			fixed_ship_anti_air_slot = ship_anti_air_1
			fixed_ship_fire_control_system_slot = ship_fire_control_system_0
			fixed_ship_radar_slot = empty
			fixed_ship_engine_slot = cruiser_ship_engine_1
			fixed_ship_armor_slot = ship_armor_cruiser_1
			fixed_ship_secondaries_slot = ship_secondaries_1
			mid_1_custom_slot = empty
			mid_2_custom_slot = empty
			rear_1_custom_slot = empty
		}
	}
}

# 1939 Start #
1939.1.1 = {
	if = {
		limit = { not = { has_dlc = "Man the Guns" } }
		# Ship variants #
	}
	if = {
		limit = { has_dlc = "Man the Guns" }
		# Destroyers #
		create_equipment_variant = {
			name = "Sleipner & Odin Class"							
			type = ship_hull_light_1
			name_group = NOR_DD_HISTORICAL
			parent_version = 0
			modules = {
				fixed_ship_battery_slot = ship_light_battery_1
				fixed_ship_anti_air_slot = ship_anti_air_1
				fixed_ship_fire_control_system_slot = ship_fire_control_system_0
				fixed_ship_radar_slot = empty
				fixed_ship_engine_slot = light_ship_engine_1
				fixed_ship_torpedo_slot = ship_torpedo_1
				mid_1_custom_slot = ship_mine_layer_1
				rear_1_custom_slot = ship_depth_charge_1
			}
		}
	}	
}
